import { Message, MessageBox } from 'element-ui'

// 消息
export function msgB(msg, type, bool) {
  // 弹窗消息
  bool = bool || false
  type = type || 'info'
  MessageBox.alert(msg, {
    type: type,
    showClose: true,
    closeOnClickModal: true,
    showConfirmButton: bool,
    center: true
  }).catch(() => {
  })
}
// 通知-顶部
export function msg(msg, type) {
  type = type || 'info'
  Message({
    message: msg,
    type: type,
    showClose: true,
    center: true
  }).catch(() => {
  })
}
